<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css"></style>
    <script src="./jquery-1.8.3.min.js"></script>
</head>
<body>
    <h1>JQ JSONP</h1>
    <button onclick="loadHtml()">加载</button>
    <hr>

    <div id="box"></div>


    <script>
    function makedata(obj) {
        box.innerHTML = '';
        for (var i in obj) {
            box.innerHTML += i + ':' + obj[i] + '<br>'
        }
    }


    // JSONP 的关键步骤
    function loadHtml(){
        $.getScript('http://127.0.0.1/s75/JS15_JQ04/php/jsonp.php');
    }
    
    </script>
</body>
</html>